﻿<Page x:Class="PLL.Notes.NotesPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:MSAP.Framework.Controls;assembly=MSAP.Framework.Controls"
    Title="Notes">
    <DockPanel LastChildFill="True">
        <Controls:ActionsControl DockPanel.Dock="Top" 
                                 ItemsSource="{Binding ServiceActions}" 
                                 HorizontalAlignment="Left" Margin="5,5,5,0" 
                                 GroupsID="CRUD_NOTE"/>
        <ListView Name="listView" SelectionMode="Single"
                  ItemsSource="{Binding RecordsView}" 
                  IsSynchronizedWithCurrentItem="True">
            <ListView.View>
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn Header="Oid" DisplayMemberBinding="{Binding Oid}" Width="120" />
                        <GridViewColumn Header="Date"  DisplayMemberBinding="{Binding Date}" Width="100" />
                        <GridViewColumn Header="Titre"  DisplayMemberBinding="{Binding Titre}" Width="100" />
                        <GridViewColumn Header="Description"  DisplayMemberBinding="{Binding Description}" Width="100" />
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
    </DockPanel>
</Page>
